/**
 * ===========================================
 * Project: gamehistory-service
 * ===========================================
 * Package: com.cyou.gamehistory.repository
 * 
 * Copyright (c) 2012, CYOU All Rights Reserved.
 * ===========================================
 */
package com.cyou.gamehistory.repository;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.cyou.framework.mybatis.MyBatisRepository;
import com.cyou.framework.pagination.proxy.PaginationSupport;
import com.cyou.gamehistory.entity.Game;

/**
 * <p>GameInfoDao</p>
 *
 * @since 2012-12-13
 * @version 
 * @author zhangxingkai
 */
@MyBatisRepository
public interface GameDao {
	
	@SuppressWarnings("rawtypes")
	List<Game> search(Map map);

	List<Game> getAllGameInfos();
	
	@SuppressWarnings("rawtypes")
	PaginationSupport<Game> findAllGamesByInitial(Map map);

	Game getGameInfo(Long id);

	Game getGameInfoByCode(String gameCode);
	
	void saveGameBatch(List<Game> gameList);
	
	Set<String> getGameCodeSet();

	Integer getTotalCount();



}
